import { commonParams, options } from './config';
import axios from 'axios';


// api/key_search
/**
 * 根据用户输入的keyword查询
 */
export function getSuggestList (keyword, page, zhida, perpage) {
	const data={  "keyword":keyword,  "pageIndex": page,
  "pageSize":perpage};

  return new Promise((resolve, reject) => {
	    // let url='/api/MusicApi/getSongList';
		let url='/music/api/MusicApi/getSongList';
	  uni.request({
	  	url:url,
	  	data:data,
	  	method:"POST",
	  	header: {
			'Content-Type': 'application/json',
	        		},
	  			success:(res)=>{
	  				resolve(res);
	  			},
	  			fail:(fail)=>{
	  				resolve(fail);
	  			}
	  });
	  
  });
  
}
